<%-- 
    Document   : searchResult
    Created on : Oct 8, 2009, 10:11:21 PM
    Author     : baga
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<f:view>
    <html>
        <head>
            <f:loadBundle basename="com.messages" var="msgs"/>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title><h:outputText value="#{msgs.pageTitle}"/></title>
        </head>
        <body>
            <h:form>
                <h:inputText value="#{searchSystem.contextQuery}"/>
                <h:commandButton action="#{searchSystem.getSummNoHM}" value="cari"/>
            </h:form>
            <h:outputText value="#{searchSystem.times}"/>
            <h:dataTable var="sc" value="#{searchSystem.result}" rows="30">
                <h:column>
                    <h:panelGrid columns="1">
                        <h:outputLink onclick="window.open('#{sc.links}');" value="#">
                            <h:outputText value="#{sc.documents}"/>
                        </h:outputLink>
                        <h:outputText value="#{sc.documents}"/>
                        <h:outputText value="#{sc.nodes}"/>
                        <h:outputText value="#{sc.contexts}"/>
                        <h:outputText value="#{sc.simVal}"/>
                    </h:panelGrid>
                </h:column>
            </h:dataTable>

        </body>
    </html>
</f:view>